package com.sayimo.maker.user.service;

import java.util.Map;

import com.sayimo.framework.common.MessageObject;
import com.sayimo.framework.exception.ServiceException;

/**
 * @Copyright (c) 2016 广东省尚一互联网有限公司
 * @Project: maker-user
 * @ClassName: ProvinceInterfaceService.java
 * @Description: 省市区Servie
 * @Author:	tanxin
 * @Date:2017年2月8日,上午11:41:09
 * @Version 1.0.0
 */
public interface ProvinceInterfaceService {

	
	
	/** 
	* @Title: queryProvince 
	* @Description: 查询所有省
	* @return Map
	*/ 
	public Map queryProvince() throws ServiceException;
	
	/** 
	* @Title: queryCity 
	* @Description: 查询所有市
	* @return Map
	*/ 
	public Map queryCity(String provinceCode) throws ServiceException;
	
	/** 
	* @Title: queryArea 
	* @Description: 查询所有区
	* @return Map
	*/ 
	public Map queryArea(String cityCode) throws ServiceException;
	
	/** 
	* @Title: queryAddressByArea
	* @Description: 根据区找到对应的省市区详细地址
	* @return MessageObject
	*/ 
	public Map<String,Object> queryAddressByArea(String areaCode) throws ServiceException;
	
	/** 
	* @Title: queryAddressByArea
	* @Description: 根据区找到对应的省市区详细地址
	* @return MessageObject
	*/ 
	public Map<String,Object> queryAddressByAreaCode(String areaCode) throws ServiceException;
	
	
	
	 /**
	 * @Package com.sayimo.school.mall.module.admin.service
	 * @Author 龚益君
	 * @MethodName:queryAllAsJson
	 * @Description:获取所有的地址列表 为json数组
	 * @return
	 * @throws ServiceException
	 * @Date 2016年6月1日,上午10:01:32
	 */
	public Map<String,Object> queryAllAsJson() throws ServiceException;
	
	public Map queryCodeByarea(String code) throws ServiceException;
}
